package com.computercourse.framework.domain.course.ext;

import com.computercourse.framework.domain.course.Category;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.List;

/**
 * @param null
 * @author Feng.Yuan
 * @description
 * @date 2020/1/28 10:29 下午
 * @return
 */
@Data
@ToString
@NoArgsConstructor
public class CategoryNode extends Category {

    List<CategoryNode> children;


    public CategoryNode(Category category){

        this.setId(category.getId());
        this.setIsleaf(category.getIsleaf());
        this.setIsshow(category.getIsshow());
        this.setLabel(category.getLabel());
        this.setName(category.getName());
        this.setOrderby(category.getOrderby());
        this.setParentid(category.getParentid());

    }



}
